<% if @repositories.any? %>
  <% @namespaces.each do |namespace, repositories| %>
    <%= render "namespace", namespace: namespace, repositories: repositories %>
  <% end %>

  <% if @repositories.more? %>
    <div class="text-center">
      <%= link_to root_path(last: @repositories.last.name), class: "btn btn-outline-secondary px-4" do %>
        Next page
      <% end %>
    </div>
  <% end %>
<% else %>
  <div class="card-body text-center py-5">
    <h2>仓库为空</h2>
    <h4 class="lead text-muted">当前镜像仓库中没有仓库。</h4>
  </div>
<% end %>
